import request from '@/utils/request'

export default {

  getCommentList(page,limit,courseId){
    console.log("courseId: " + courseId)

    return request({
      url: `/eduservice/comment/commentListByCourseId/${page}/${limit}`,
      method: 'post',
      data:courseId,
      headers:{
        // 'Content-Type':'application/x-www-form-urlencoded'
        'Content-Type':'application/json'
      }
    })
  },

  addComment(comment){
    console.log(comment);
    return request({
      url: `/eduservice/comment/addComment`,
      method: 'post',
      data: comment

    })
  }

}
